@charset "utf-8";
$mcolor: #fe6400;

body {
  overflow-x: hidden
}

* {
  font-family: "微软雅黑"
}

/**Common Css**/
.cent-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wid {
  width: 94%;
  margin-left: auto;
  margin-right: auto;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.m40 {
  margin: 40px auto;
}

.p40 {
  padding: 40px 0;
}

.p50 {
  padding: 50px 0;
}

.p20 {
  padding: 20px 0;
}

.mb50 {
  margin-bottom: 50px;
}

/*文本超出显示省略号*/
.ehn,
.otw,
.tow {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/*清除浮动*/
.clearfix {
  clear: both;
}

.clearfix:after {
  display: block;
  clear: both;
  content: "\0020";
  visibility: hidden;
  height: 0;

}

.img-box {
  overflow: hidden;
}

.img-box img {
  transition: all, .5s;
  width: 100%;
  height: 100%;
  display: block;
}

.img-box:hover img {
  transform: scale(1.1, 1.1);
}

/* login */
.login-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url(../images/login-bg.jpg) no-repeat center top;
  background-size: 100%;
  /* background-size: contain; */
  background-color: #f4f4f4;
}

.login-main {
  /* position: absolute; */
  width: 85%;
  left: 50%;
  /* height: 90%; */
  top: 10%;
  /* transform: translateX(-50%); */
  padding: 0 5%;
  margin: 0 auto;
  margin-top: 10%;
}

.w-100 {
  width: 100%
}

.login-from {
  background: #fff;
  position: relative;
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 5.878px 8.09px 18px 0px rgba(6, 0, 1, 0.06);
}


.login-text h1 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 1.5rem;
  color: #fff;
}

.login-main .el-form-item {
  margin-bottom: 10px;
}

.logo {
  width: 60px;
  margin: 10px auto;
  display: block;
}

.login-box {
  display: flex
}

.login-box .icon-bg {
  width: 50px;
  background: #999;
  height: 50px;
  color: #fff;
  font-size: 30px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  margin: 5px auto;
}

.login-box {
  margin-top: 1.5rem;
  /* position: absolute; */
  bottom: 0;
  width: 100%;
  left: 0;
}

.login-box li {
  text-align: center;
  font-size: 0.8rem;
  width: 33.3%;
  line-height: 2;

}

.login-box li a {
  color: #999
}

.login-box .icon-bg i {
  font-size: 1.8rem
}


/* header */
.goback {
  position: absolute;
  left: 3%;
  top: 2.5%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px
}

.header-bg {
  background: $mcolor;
  color: #fff;
  height: 80px;
  width: 100%;
}

.header-bg h1 {
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
  line-height: 60px;
  font-weight: bold;
}

.header-box {
  display: table;
  margin: 0 auto;
  position: relative;
}

.header-box .cir {
  position: absolute;
  top: 50%;
  transform: translateY(-50%)
}

.header-box .cir.left {
  left: -30px;
  ;
}

.header-box .cir.right {
  right: -30px;
}

.header-box .cir span {
  width: 6px;
  height: 6px;
  background: #fff;
  display: block;
  float: left;
  margin: 0 2px;
  border-radius: 50%;
}

.header-box .cir.left span:nth-child(1) {
  opacity: .5;
}

.header-box .cir.right span:nth-child(2) {
  opacity: .5;
}

/* 搜索 */
.serach-bg {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0px 6px 7.44px 0.56px rgba(255, 199, 224, 0.3);
  height: 40px;
  line-height: 40px;
  border-radius: 40px;
  margin-top: -20px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.serach-box input {
  color: $mcolor;
  width: 80%;
  position: absolute;
  left: 0;
  height: 100%;
  text-indent: 1.5rem;
  font-size: 0.8rem;
  text-align: center
}

.serach-box button {
  position: absolute;
  right: 0;
  width: 50px;
  line-height: 40px;
  text-align: center;
  color: $mcolor;
}

.serach-box button i {
  font-size: 1.4rem
}

.serach-box input::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #CCC;
}


/* banner */

/* banner */
.banner {
  position: relative;
  overflow-x: hidden;
  /* top: 80px; */
  margin-top: 20px;
}


.banner img {
  width: 100%;
}

.banner .swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.9);
}

.banner .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  transition: 300ms;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all .5s ease;
  background: #000;
}

.banner .swiper-slide img {
  opacity: .5;
  transition: all 1s ease
}

.banner .swiper-slide-active {
  opacity: 1;
}

.banner .swiper-slide-active img {
  opacity: 1;
}

.banner .swiper-pagination .swiper-pagination-bullet {
  background: #fff;
  transition: all .5s ease;
  height: 6px;
  border-radius: 3px;
  width: 6px;
}

.banner .swiper-pagination-bullet-active {
  width: 24px !important;
  border-radius: 3px;
  opacity: 1 !important;
}

.index-icon-container {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5
}

.index-icon-container li {
  width: 23%;
  margin: 1%
}

.index-icon-container li img {
  width: 50px;
}

/* 食物菜单 */
.index-tit {
  font-size: 1rem;
  color: #999;
  font-weight: bold;
  padding: 10px 0
}

.shiwu-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between
}

.shiwu-container li {
  width: 49%;
  margin-bottom: 3%;
  height: 80px;
  background-image: url(../images//caipu1.jpg);
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative
}

.shiwu-container li h4 {
  font-size: 0.8rem;
  position: absolute;
  top: 1rem;
  left: 10px;
}

.shiwu-container li span {
  position: absolute;
  left: 10px;
  top: 2.4rem;
  font-size: 0.6rem
}

.shiwu-container li:nth-child(1) {
  color: #f77154;
}

.shiwu-container li:nth-child(2) {
  color: #5ac174;
  background-image: url('../images/caipu2.jpg')
}

.shiwu-container li:nth-child(3) {
  color: #9a4ee6;
  background-image: url('../images/caipu3.jpg')
}

.shiwu-container li:nth-child(4) {
  color: #fc4ebb;
  background-image: url('../images/caipu4.jpg')
}

/* 精选菜品 */
.hot-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.hot-container li {
  width: 48%;
  margin-bottom: 6%;
}

.hot-container li .img-box {
  border-radius: 0.4rem;
}

.hot-container li h4 {
  font-size: 0.8rem;
  color: #333;
  padding: 10px 0 5px 0
}

.hot-container li i {
  color: #f4ea2a;
  font-size: 8px
}

.hot-container li p {
  display: flex;
  justify-content: space-between;
  color: #ccc;
  font-size: 0.8rem;
  span{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 45%;
  }
 
}

/* tabbar */
.tabbar {
  border-top: 1px solid #eee;
  box-shadow: 0px 3px 9px 0px rgba(214, 214, 214, 0.5);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index:999;
}

.tabbar-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
}

.tabbar-box li {
  width: 16%;
  margin: 2%;
  color: #333
}

.tabbar-box li i {
  font-size: 1rem
}

.tabbar-box li.active {
  color: $mcolor;
}

.tabbar-box p {
  font-size: 0.8rem;
}

// cart 

.cart-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f6f6f6
}

.left-cart {
  width: 25%;
  height: 100%;
  overflow-y: scroll;

  .van-sidebar {
    width: 100%;
    text-align: center;

    .van-sidebar-item {
      padding: 0;
      line-height: 4;
      background: #fff;

      .van-sidebar-item__text {
        cursor: pointer;
      }

      a {
        cursor: pointer;
      }
    }

    .van-sidebar-item--select {
      border-color: $mcolor;
      background: #f6f6f6;
      color: $mcolor
    }
  }
}

.cart-right {
  position: absolute;
  right: 2.5%;
  top: 1.5%;
  width: 70%;
  overflow-y: scroll;
  background: #f6f6f6;
  height: 98.5%;
  padding-bottom: 55px;

  .sub-name {
    justify-content: space-between;

    li {
      width: 30.3333333%;
      text-align: center;
      font-size: 0.8rem;
      padding: 10px 0;
      margin: 1.5%;
      background: #fff;
      float: left;
      border-radius: 5px
    }
  }

  .cartlist-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 99%;
    margin-left: 1%;


    li {
      width: 46%;
      margin: 4% 2% 4% 0;
      border-radius: 5px;
      overflow: hidden;
    }

    p {
      font-size: 0.8rem;
      line-height: 2;
      text-align: center;
      background: #fff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding: 8px 4px
    }
  }
}


// article-containter
.article-containter {
  background: #f6f6f6;
  position: absolute;
  height: calc(100% - 54px);
  width: 100%;

  .article-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url(../images//art-bg.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    .black {
      background: #000;
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: .5;
    }
  }

  .article-main {
    background: #fff;
    width: 80%;
    padding: 6%;
    margin: 0 auto;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.4rem;
    min-height: 430px;
    margin-bottom: 20px;
  }

  .title {
    padding-bottom: 10px;

    h4 {
      font-size: 1.4rem;
      font-weight: bold;
      padding-bottom: 5px;
    }

    .van-rate__icon {
      font-size: 1rem
    }

  }

  hr {
    height: 1px;
    background-color: #ccc;
    border: none;
    margin-bottom: 10px;
  }

  .sub-tit {
    padding: 5px 0
  }

  .main-body {
    font-size:1rem;
    line-height: 2;
    color: #666666;

    img {
      display: block;
      margin: 5px auto;
      border-radius: 4px;
      box-shadow: 0px 0px 6px #ccc
    }
  }

  .dec {
    background: #f6f6f6;
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    margin: 10px auto;
    font-size: 0.8rem;
    color: #666;

    i {
      color: $mcolor;
      font-style: normal;
      display: block;
      padding: 5px 0
    }
  }
}

// hot 
.hotbox-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  height: 70%;
  padding-bottom: 10%;

  .swiper-hot {
    position: relative;
    width: 80%;
    left: 10%;
    padding-top: 10%;
    padding-bottom: 10%;

    .swiper-slide:not(.swiper-slide-active) {
      transform: scale(0.9);
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      display: flex;
      align-items: center;
      transition: 300ms;
      border-radius: 0.5rem;
      overflow: hidden;
      transition: all .5s ease;
    }

    .swiper-slide img {
      opacity: .5;
      transition: all 1s ease
    }

    .swiper-slide-active {
      opacity: 1;
    }

    .swiper-slide-active img {
      opacity: 1;
    }

    .swiper-pagination .swiper-pagination-bullet {
      background: #fff;
      transition: all .5s ease;
      height: 6px;
      border-radius: 3px;
      width: 6px;
      bottom: 0;
    }


  }

  .hot-bg {
    background: url(../images/hot-bg.jpg) no-repeat center center;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;

    .bg {
      background: #000;
      opacity: .5;
      position: absolute;
      width: 100%;
      height: 100%;
    }
  }

  .hot-main {
    background: #fff;
    border-radius: 10px;
  }

  .text {
    text-align: center;
    padding: 5%;

    h4 {
      padding: 10px 0;
      font-size: 1rem;
      padding-top: 0;
    }

    .van-rate__icon {
      color: $mcolor !important;
    }

    .dec {
      font-size: 0.8rem;
      background: #eee;
      padding: 8px 10px;
      line-height: 1.5;
      margin: 10px 0;
      color: #666;
      border-radius: 5px;
      border: 1px solid #ccc;

      i {
        color: $mcolor;
      }
    }
  }
}


// user
.user-container{
  .user-bg {
    width: 100%;
    position: absolute;
    left: 0;
    background: url(../images/user-bg.jpg) no-repeat top center;
    height: 300px;
    z-index: 0;
  }
  .user-main{
    position: relative;
    z-index:222;
    padding-bottom: 20px;
    button{
      height: 40px;
      line-height: 40px;
      width: 80%;
      margin: 10px auto;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 4px;
    }
  }
    .header-bg {
      background: none
    }
  
    .user-img {
      color: #fff;
      text-align: center;
      font-weight: bold;
  
      .img-box {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0px 3px 43px 0px rgba(253, 114, 0, 0.69);
        margin: 0 auto;
      }
  
      p {
        padding: 20px 10px;
        line-height: 1.5;
        font-size: 0.8rem;
      }
    }
  
    .user-text {
      color: #333;
      display: flex;
      justify-content: space-between;
      background: #fff;
      padding: 20px 0;
      border-radius: 10px;
      box-shadow: 0px 4px 19px 0px rgba(221, 224, 211, 0.9);
  
      li {
        width: 30%;
        text-align: center;
        font-size: 0.8rem;
  
        h5 {
          color: $mcolor;
          font-size: 1rem;
          font-weight: bold;
          padding-bottom: 5px;
        }
      }
    }
    .user-icon{
      display: flex;
      justify-content: space-between;
      margin-top: 30px;
      margin-bottom: 30px;
      li{
        width: 25%;
        text-align: center;
        font-size:0.8rem;
        img{
          width:50px;
          margin: 10px auto;
        }
      }
    }
    .index-tit{
      padding: 1.5rem 0
    }
}


.hot-clum{
  display: flex;
  flex-wrap: wrap;
  margin: 10px auto;
  .index-tit{
    padding: 10px 0
  }
  p{
    display: inline-block;
    width: 23%;
    text-align: center;
    font-size: 0.8rem;
    line-height: 40px;
    background: #f6f6f6;
    margin:1%;
    border-radius: 10px;
  }
}

.result-container{
  .header-bg{
    height: 60px!important;
    margin-bottom: 20px;
  }
  }